package com.k2data.k2app.mapper;

import com.k2data.k2app.domain.EventCond;
import com.k2data.k2app.domain.po.EventDevice;
import com.k2data.k2app.mybatis.mapper.K2Mapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author lidong9144@163.com 17-3-20.
 */
@Mapper
@Repository
public interface EventDeviceMapper extends K2Mapper<EventDevice> {

    /**
     * 查询所有事件
     *
     * @param cond 查询条件
     * @return 维修 + 故障 + 设备 事件
     */
    List<EventDevice> selectList(EventDevice cond);

    List<EventDevice> selectAllEvent(EventCond cond);

}
